/*
 * @author       :成家杰
 * @date         :2022-06-22 09:21:54
 * @Description  : com.tj.service.impl
 * @version      : 1.0
 */


package com.tj.service.impl;

import com.tj.mapper.OverAllResultMapper;
import com.tj.pojo.OverAllResult;
import com.tj.service.OverAllResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OverAllResultServiceImpl implements OverAllResultService {
    
    @Autowired
    private OverAllResultMapper overAllResultMapper;
    /**
     * @return
     */
    @Override
    public List<OverAllResult> selectAll()  throws Exception{
        return overAllResultMapper.selectAll();
    }
    
    /**
     * @param id
     * @return
     * @throws Exception
     */
    @Override
    public List<OverAllResult> selectByOverAllResultId(Integer id) throws Exception {
        return overAllResultMapper.selectByOverAllResultId(id);
    }
    
    /**
     * @param title
     * @param content
     * @param orderId
     * @return
     * @throws Exception
     */
    @Override
    public int insert(String title, String content, Integer orderId) throws Exception {
        return overAllResultMapper.insert(title, content, orderId);
    }
    
    /**
     * @param id
     * @return
     * @throws Exception
     */
    @Override
    public int delete(Integer id) throws Exception {
        return overAllResultMapper.delete(id);
    }
    
    /**
     * @param id
     * @param title
     * @param content
     * @param orderId
     * @return
     * @throws Exception
     */
    @Override
    public int update(Integer id, String title, String content, Integer orderId) throws Exception {
        return overAllResultMapper.update(id, title, content, orderId);
    }
    
    /**
     * @param title
     * @return
     * @throws Exception
     */
    @Override
    public List<OverAllResult> Fuzzyquery(String title) throws Exception {
        return overAllResultMapper.getFuzzyquery(title);
    }
}
